home *** CD-ROM | disk | FTP | other *** search
- /* smtpcli.c
- * Client routines for Simple Mail Transfer Protocol ala RFC821
- * A.D. Barksdale Garbee II, aka Bdale, N3EUA
- * Copyright 1986 Bdale Garbee, All Rights Reserved.
- * Permission granted for non-commercial copying and use, provided
- * this notice is retained.
- * Modified 14 June 1987 by P. Karn for symbolic target addresses,
- * also rebuilt locking mechanism
- * Limit on max simultaneous sessions, reuse of connections - 12/87 NN2Z
- * Added return of mail to sender as well as batching of commands 1/88 nn2z
- */
- #include <stdio.h>
- #include "global.h"
- #ifdef MAC
- #include <io.h>
- #include <types.h>
- #else
- #include <fcntl.h>
- #endif
- #include <time.h>
- #ifdef UNIX
- #include <sys/types.h>
- #endif
- #include "netuser.h"
- #include "mbuf.h"
- #include "timer.h"
- #include "tcp.h"
- #include "smtp.h"
- #include "trace.h"
- #include "cmdparse.h"
-
- extern int16 lport; /* local port placeholder */
- extern int32 resolve();
- static struct timer smtpcli_t;
- int32 gateway;
-
- #ifdef SMTPT